﻿using System;
using System.Diagnostics;

namespace EvincePayroll.Utility
{
    public class LogFactory
    {
        public static ILogger GetLogger()
        {
            try
            {
                var stack = new StackTrace();
                var frame = stack.GetFrame(1);
                return new Log4NetWrapper(frame.GetMethod().DeclaringType);
            }
            catch (Exception) { }

            return null;
        }
    }
}
